package cn.blb.service.edu.mapper;

import cn.blb.service.edu.entity.Course;
import cn.blb.service.edu.entity.dto.CourseDto;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author jsd
 * @since 2022-03-17
 */
@Repository
public interface CourseMapper extends BaseMapper<Course> {

    Page<CourseDto> getCourseDtoBySearch(Page<CourseDto> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    CourseDto getCourseById(String id);
}